import request from '@/utils/request'

// 查询空白网点列表
export function listFranchise(query) {
  return request({
    url: '/xdstore/blankFranchise/list',
    method: 'get',
    params: query
  })
}

// 查询空白网点详细
export function getFranchise(id) {
  return request({
    url: '/xdstore/blankFranchise/' + id,
    method: 'get'
  })
}

// 新增空白网点
export function addFranchise(data) {
  return request({
    url: '/xdstore/blankFranchise',
    method: 'post',
    data: data
  })
}

// 修改空白网点
export function updateFranchise(data) {
  return request({
    url: '/xdstore/blankFranchise',
    method: 'put',
    data: data
  })
}

// 删除空白网点
export function delFranchise(id) {
  return request({
    url: '/xdstore/blankFranchise/' + id,
    method: 'delete'
  })
}

// 导出空白网点
export function exportFranchise(query) {
  return request({
    url: '/xdstore/blankFranchise/export',
    method: 'get',
    params: query
  })
}

// 查询网点选商备案列表（管理端）
export function customerList(query) {
  return request({
    url: '/outlets/customer/list',
    method: 'get',
    params: query
  })
}


// 查询网点选商日志跟进列表（管理端）
export function followupList(query) {
  return request({
    url: '/outlets/followup/list',
    method: 'get',
    params: query
  })
}
